package kr.hkit.powerjava.chapter07.test;
import java.util.Scanner;

public class Jogun {
	public static void main(String[] args) {

		int a;
		int b;
		int c;

		Scanner in = new Scanner(System.in);
		System.out.print("세개의 정수 입력 : ");
		a = in.nextInt();
		b = in.nextInt();
		c = in.nextInt();

		if (a == b || b == c || c == a) {
			System.out.println("서로다른수 입력");
		} else if (a > b) {
			if (b > c) {
				System.out.printf("%d", c);
			} else if (b < c) {
				System.out.printf("%d", b);
			}
		} else if (b > c) {
			if (a > c) {
				System.out.printf("%d", c);
			} else if (a < c) {
				System.out.printf("%d", a);
			}
		} else if (c > a) {
			if (b > a) {
				System.out.printf("%d", a);
			} else if (b < a) {
				System.out.printf("%d", b);

			}
		}

	}

}
